import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from 'views/login/Login'
import Home from 'views/home/Home'
import Borrow from 'views/borrow/Borrow'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: 'login',
  },
  {
    name: 'login',
    path: '/login',
    component: Login
  },
  {
    name: 'home',
    path: '/home',
    component: Home
  },
  {
    name: 'borrow',
    path: '/borrow',
    component: Borrow
  }
]

const router = new VueRouter({
  routes
})

export default router
